package com.funny.stock.trade.dao.repo;

import com.funny.stock.trade.dao.pojo.EmulateComposeDO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description  
 * @Author  pengl
 * @Date 2020-05-17 
 */

@Repository
public interface EmulateComposeRepo extends JpaRepository<EmulateComposeDO,Long>, JpaSpecificationExecutor {

    EmulateComposeDO findByNameAndCreateId(String name,Long createId);

    EmulateComposeDO findByCreateIdAndId(Long createId,Long id);

    List<EmulateComposeDO> findByCreateIdAndIsDelete(Long createId, Integer isDelete);

    Page<EmulateComposeDO> queryByCreateId(Long createId, Pageable pageable);


}
